package pl.edu.agh.stock.data;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class IndexDataPoint implements Serializable {

	private static final long serialVersionUID = 2552320620848828558L;

	private String name;
	private List<ValorDataPoint> valors;

	public IndexDataPoint() {

	}

	public IndexDataPoint(String name, List<ValorDataPoint> valors) {
		this.name = name;
		this.valors = valors;
	}

	@XmlElement
	public String getName() {
		return name;
	}

	@XmlElement
	public List<ValorDataPoint> getValors() {
		return valors;
	}
}
